package com.sky.mapper;

import com.sky.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.Map;

/**
 * @version 1.0
 * @Author 郭腾高
 * @Date 2024/9/22 22:18
 */
@Mapper
public interface UserMapper {
    //根据openid查询用户
    @Select("select * from user where openid = #{openid}")
    User getByOpenid(String openid);

    void insert(User user);
    @Select("select * from user where id =#{id}")
    User getById(Long userId);
    //查询用户数量输出数据统计
    Integer getUserNumber(Map map);

}
